package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;

/**
 * @author almost
 */
public class VerifyHealthCode {
    /**
     * 设备序列号
     */
    private String serialNumber;
    /**
     * 健康码
     */
    private String qrCode;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public VerifyHealthCode() {
    }

    /**
     * 设备序列号
     */
    @SuppressWarnings("all")
    public String getSerialNumber() {
        return this.serialNumber;
    }

    /**
     * 健康码
     */
    @SuppressWarnings("all")
    public String getQrCode() {
        return this.qrCode;
    }

    /**
     * 设备序列号
     */
    @SuppressWarnings("all")
    public void setSerialNumber(final String serialNumber) {
        this.serialNumber = serialNumber;
    }

    /**
     * 健康码
     */
    @SuppressWarnings("all")
    public void setQrCode(final String qrCode) {
        this.qrCode = qrCode;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof VerifyHealthCode)) return false;
        final VerifyHealthCode other = (VerifyHealthCode) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$serialNumber = this.getSerialNumber();
        final Object other$serialNumber = other.getSerialNumber();
        if (this$serialNumber == null ? other$serialNumber != null : !this$serialNumber.equals(other$serialNumber)) return false;
        final Object this$qrCode = this.getQrCode();
        final Object other$qrCode = other.getQrCode();
        if (this$qrCode == null ? other$qrCode != null : !this$qrCode.equals(other$qrCode)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof VerifyHealthCode;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $serialNumber = this.getSerialNumber();
        result = result * PRIME + ($serialNumber == null ? 43 : $serialNumber.hashCode());
        final Object $qrCode = this.getQrCode();
        result = result * PRIME + ($qrCode == null ? 43 : $qrCode.hashCode());
        return result;
    }
    //</editor-fold>
}
